{% extends "../base_adminlte.html" %}
{% load staticfiles %}
{% load widget_tweaks  %}
{% block content %}
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
    <div class="content-header">
    </div>

  <section class="content">
 

 <table align="center" style="border-collapse:separate; border-spacing: 20px 10px;
          align-content: center;" >
        <tr><td style="white-space:nowrap;">模块</td><td>{{ application.module }}</td></tr>
        <tr><td style="white-space:nowrap;">模块安装路径</td><td>{{ application.install_path }}</td></tr>
        <tr><td style="white-space:nowrap;">模块日志路径</td><td>{{ application.log_path }}</td></tr>
        <tr><td style="white-space:nowrap;">模块配置路径</td><td>{{ application.config_path }}</td></tr>
        <tr><td style="white-space:nowrap;">模块端口</td><td>{{ application.modules_port }}</td></tr>
        <tr><td style="white-space:nowrap;">用户名</td><td>{{ application.user_name }}</td></tr>
        <tr><td style="white-space:nowrap;">集群模式</td><td>{{ application.redundancy_type }}</td></tr>
        <tr><td style="white-space:nowrap;">集群软件</td><td>{{ application.cluster_software }}</td></tr>
        <tr><td style="white-space:nowrap;">存储</td><td>{{ application.storage }}</td></tr>
        <tr><td style="white-space:nowrap;">ip</td><td>
            {% for hosts in application.hostslists_set.all %}
                        {{ hosts.ip }}/
                    {% empty %}
                        暂未分配ip
                    {% endfor %}
            {{ application.ip }}</td></tr>
      <tr><td></td><td>
        <button  onclick="location.href='/ansible/applicationlist'" type="button" value="返回" >返回</button></td></tr>
      </table>
  </section>
</div>
{% endblock %}
